package com.barbeque.mall.bean.wx.order;

import com.barbeque.mall.util.OptionStatus;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author Tezel
 * @since 2022/07/19 17:47
 */

public class WxOrderListVo {

    private Integer id;

    private boolean isGroupin = false;

    private String orderSn;

    private String orderStatusText;

    private OptionStatus handleOption;

    private List<WxOrderGoodsVo> goodsList;

    private Short aftersaleStatus;

    private BigDecimal actualPrice;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public boolean isGroupin() {
        return isGroupin;
    }

    public void setGroupin(boolean groupin) {
        isGroupin = groupin;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public String getOrderStatusText() {
        return orderStatusText;
    }

    public void setOrderStatusText(Short status) {
        if("101".equals(status.toString())){
            this.orderStatusText ="未付款";
        }
        if("102".equals(status.toString())){
            this.orderStatusText ="已取消";
        }
        if("103".equals(status.toString())){
            this.orderStatusText ="已取消(系统)";
        }

        if("201".equals(status.toString())){
            this.orderStatusText ="已付款";
        }

        if("202".equals(status.toString())){
            this.orderStatusText ="订单取消，退款中";
        }

        if("203".equals(status.toString())){
            this.orderStatusText ="已退款";
        }

        if("301".equals(status.toString())){
            this.orderStatusText ="已发货";
        }

        if("401".equals(status.toString())||
                "402".equals(status.toString()) ){
            this.orderStatusText ="已收货";
        }



    }

    public OptionStatus getHandleOption() {
        return handleOption;
    }

    public void setHandleOption(OptionStatus handleOption) {
        this.handleOption = handleOption;
    }

    public List<WxOrderGoodsVo> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<WxOrderGoodsVo> goodsList) {
        this.goodsList = goodsList;
    }

    public Short getAftersaleStatus() {
        return aftersaleStatus;
    }

    public void setAftersaleStatus(Short aftersaleStatus) {
        this.aftersaleStatus = aftersaleStatus;
    }

    public BigDecimal getActualPrice() {
        return actualPrice;
    }

    public void setActualPrice(BigDecimal actualPrice) {
        this.actualPrice = actualPrice;
    }
}
